package vehicle;

/*
 * 父类：汽车类
 */

public abstract class Vehicle {
	private String vehicleId; // 车牌号
	private String type; // 型号

	public Vehicle() {

	}

	public Vehicle(String vehicle, String type) {
		this.vehicleId = vehicle;
		this.type = type;
	}

	public String getVehicleId() {
		return vehicleId;
	}

	public void setVehicleId(String vehicleId) {
		this.vehicleId = vehicleId;
	}

	public String getType() {
		return type;
	}

	public void setType(String type) {
		this.type = type;
	}

	// 抽象方法run（）：汽车行驶
	public abstract void run();
}
